package com.liuyanzhao.blog.entity.custom;

import com.liuyanzhao.blog.entity.User;

/**
 * 
 * @author Baokai Wang
 *  用户信息的扩展
 * @CrateTime: 2019年6月17日
 */
public class UserCustom extends User {
	private static final long serialVersionUID = 7543650323997650442L;
	//用户的文章数
    private Integer articleCount;

    public Integer getArticleCount() {
        return articleCount;
    }

    public void setArticleCount(Integer articleCount) {
        this.articleCount = articleCount;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((articleCount == null) ? 0 : articleCount.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserCustom other = (UserCustom) obj;
		if (articleCount == null) {
			if (other.articleCount != null)
				return false;
		} else if (!articleCount.equals(other.articleCount))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "UserCustom [articleCount=" + articleCount + "]";
	}
    
    
    
}
